﻿//////////////////////////////////////////////////////////////////////////////
//
// Copyright © 1998-2024 Glodon Company Limited.
//
// Licensed under the MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the “Software”),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
// sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
//////////////////////////////////////////////////////////////////////////////
#pragma once
#include "GbmpModelViewInput.h"
#include "GbmpModelViewTypes.h"

namespace gcmp
{
    class ILevel;

    struct GbmpSectionViewInput : public GbmpModelViewInput
    {
        GbmpSectionViewInput()
            : GbmpModelViewInput()
        {
            ViewType = SectionViewType;

            HasRectViewport = true;

            BottomOffset = 30000;

            SymbolLeftPtOffset = 15000;

            SymbolRightPtOffset = 15000;

            SymbolUpPtOffset = 15000;

            SymbolDownPtOffset = 15000;

            Level = nullptr;
        }

        double BottomOffset;        //剖切盒底部偏移
        double SymbolLeftPtOffset;  //视图标记在剖切盒上（下）表面所在平面较视图原点的左侧偏移,偏移为负时在视图原点右侧
        double SymbolRightPtOffset; //视图标记在剖切盒上（下）表面所在平面较视图原点的右侧偏移,偏移为负时在视图原点左侧
        double SymbolUpPtOffset;    //视图标记在剖切盒右（左）表面所在平面较视图原点的上侧偏移,偏移为负时在视图原点下侧
        double SymbolDownPtOffset;  //视图标记在剖切盒右（左）表面所在平面较视图原点的下侧偏移,偏移为负时在视图原点上侧
        const ILevel* Level;        // 标高
    };
}
